package com.huateng.springcloud.service;

import com.huateng.springcloud.po.TestFeignVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * Test Service
 *
 * @author Evan
 * @create 2021/6/21 10:27
 */
@FeignClient("feign-consumer")
public interface ITestFeignService {

    @GetMapping("testFeignByGet")
    String testFeignByGet();

    @PostMapping("testFeignByPost")
    TestFeignVo testFeignByPost(@RequestBody TestFeignVo testFeignVo);

}
